package test1.pojo.genericsDO;

public class CarPrinter <T extends Car>{

    private T content;

    public CarPrinter(T content){
        this.content = content;
    }


    public void print(){
        System.out.println(content.getNickname());
    }

}
